package com.itgone.easyblog.controller;


import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * (TBlog)表控制层
 *
 * @author Earlman
 * @since 2023-03-24 13:54:19
 */
@Api(description = "[TBlog]表控制层")
@RestController
@RequestMapping("test")
public class TestController extends ApiController {
    @GetMapping("/time-now")
    public R getTimeNow() {
        Date date = new Date();
        return success(date);
    }
}

